<template>
  <div class="collect-page">
    <!-- 导航栏部分 -->
    <van-nav-bar title="我的收藏" left-arrow @click-left="$router.back()" fixed />
   <div style="margin-top:45px">
    <OneHouse  v-for="item in list" :key="item.houseCode" :item="item"></OneHouse>
   </div>
  </div>
</template>

<script>
import { getNewsList } from "@/api/message";
import OneHouse from '@/components/oneHouseList.vue'
export default {
name: "collect-page",
data () {
    return {
      list: []
    }
  },
  components:{
    OneHouse,
  },
  async created () {
    const res = await getNewsList()
    console.log(res)
    this.list=res.body
  },
}
</script>

<style>
</style>